package stu;


import java.time.LocalDate;
import java.util.Random;

/**
 * @author small瑞
 */
public class DateGap {
    public static void main(String[] args) {
        /*
        Random random = new Random();

        LocalDate localDate = LocalDate.of(random.nextInt(5000), random.nextInt(13), random.nextInt(29));
        LocalDate localDate1 = LocalDate.of(random.nextInt(5000), random.nextInt(13), random.nextInt(29));

        System.out.println(localDate);
        System.out.println(localDate1);

        Period period = Period.between(localDate, localDate1);
        System.out.println(Math.abs(period.toTotalMonths()*29) + Math.abs(period.getDays()));

         */

        Random random = new Random();

        LocalDate localDate = LocalDate.of(random.nextInt(5000), random.nextInt(13), random.nextInt(29));

        System.out.println(localDate.getDayOfYear());
    }

}
